<?	global $cClass; 
$cMethod = getParam( PARAM_METHOD ) ;
 switch ( $this->cAction . "_" . $this->cEvent . "_" . $this->nTask ) { 
	case CONSULTAR_EDITORIALES . "_onShow_1":$aClass = array('/editorial_frm' => 'makeFlt ','/editorial_lst' => 'makeLst ' ); break;
	case AGREGAR_EDITORIAL . "_onShow_1":$aClass = array('/editorial_frm' => 'makeFrm ' ); break;
	case AGREGAR_EDITORIAL . "_onLoad_2":$aClass = array('/editorial_exe' => 'insert ' ); break;
	case MODIFICAR_EDITORIAL . "_onShow_1":$aClass = array('/editorial_lst' => 'makeTit ','/editorial_arm' => 'make ' ); break;
	case MODIFICAR_EDITORIAL . "_onLoad_2":$aClass = array('/editorial_exe' => 'update ' ); break;
	case ELIMINAR_EDITORIAL . "_onLoad_1":$aClass = array('/editorial_exe' => 'delete ' ); break;
	//case  . "_onShow_1":$aClass = array('/editorial_lst' => 'makeDet ' ); break;
	case CONSULTAR_LIBROS . "_onShow_1":$aClass = array('/libro_frm' => 'makeFlt ','/libro_lst' => 'makeLst ' ); break;
	case AGREGAR_LIBRO . "_onShow_1":$aClass = array('/libro_frm' => 'makeFrm ' ); break;
	case AGREGAR_LIBRO . "_onLoad_2":$aClass = array('/libro_exe' => 'insert ' ); break;
	case MODIFICAR_LIBRO . "_onShow_1":$aClass = array('/libro_lst' => 'makeTit ','/libro_arm' => 'make ' ); break;
	case MODIFICAR_LIBRO . "_onLoad_2":$aClass = array('/libro_exe' => 'update ' ); break;
	case ELIMINAR_LIBRO . "_onLoad_1":$aClass = array('/libro_exe' => 'delete ' ); break;
	case VER_LIBRO . "_onShow_1":$aClass = array('/libro_lst' => 'makeDet ' ); break;
	case CONSULTAR_LIBROFOTO . "_onShow_1":$aClass = array('/libro_foto_frm' => 'makeFlt ','/libro_foto_lst' => 'makeLst ' ); break;
	case AGREGAR_LIBROFOTO . "_onShow_1":$aClass = array('/libro_foto_frm' => 'makeFrm ' ); break;
	case AGREGAR_LIBROFOTO . "_onLoad_2":$aClass = array('/libro_foto_exe' => 'insert ' ); break;
	case MODIFICAR_LIBROFOTO . "_onShow_1":$aClass = array('/libro_foto_frm' => 'makeFrm ' ); break;
	case MODIFICAR_LIBROFOTO . "_onLoad_2":$aClass = array('/libro_foto_exe' => 'update ' ); break;
	case ELIMINAR_LIBROFOTO . "_onLoad_1":$aClass = array('/libro_foto_exe' => 'delete ' ); break;
	case CONSULTAR_LIBRONOTA . "_onShow_1":$aClass = array('/libro_nota_frm' => 'makeFlt ','/libro_nota_lst' => 'makeLst ' ); break;
	case AGREGAR_LIBRONOTA . "_onShow_1":$aClass = array('/libro_nota_frm' => 'makeFrm ' ); break;
	case AGREGAR_LIBRONOTA . "_onLoad_2":$aClass = array('/libro_nota_exe' => 'insert ' ); break;
	case MODIFICAR_LIBRONOTA . "_onShow_1":$aClass = array('/libro_nota_frm' => 'makeFrm ' ); break;
	case MODIFICAR_LIBRONOTA . "_onLoad_2":$aClass = array('/libro_nota_exe' => 'update ' ); break;
	case ELIMINAR_LIBRONOTA . "_onLoad_1":$aClass = array('/libro_nota_exe' => 'delete ' ); break;
	case CONSULTAR_LIBROPERSONA . "_onShow_1":$aClass = array('/libro_persona_frm' => 'makeFlt ','/libro_persona_lst' => 'makeLst ' ); break;
	case AGREGAR_LIBROPERSONA . "_onShow_1":$aClass = array('/libro_persona_frm' => 'makeFrm ' ); break;
	case AGREGAR_LIBROPERSONA . "_onLoad_2":$aClass = array('/libro_persona_exe' => 'insert ' ); break;
	case MODIFICAR_LIBROPERSONA . "_onShow_1":$aClass = array('/libro_persona_frm' => 'makeFrm ' ); break;
	case MODIFICAR_LIBROPERSONA . "_onLoad_2":$aClass = array('/libro_persona_exe' => 'update ' ); break;
	case ELIMINAR_LIBROPERSONA . "_onLoad_1":$aClass = array('/libro_persona_exe' => 'delete ' ); break;
	case CONSULTAR_LUGARES . "_onShow_1":$aClass = array('/lugar_frm' => 'makeFlt ','/lugar_lst' => 'makeLst ' ); break;
	case AGREGAR_LUGAR . "_onShow_1":$aClass = array('/lugar_frm' => 'makeFrm ' ); break;
	case AGREGAR_LUGAR . "_onLoad_2":$aClass = array('/lugar_exe' => 'insert ' ); break;
	case MODIFICAR_LUGAR . "_onShow_1":$aClass = array('/lugar_frm' => 'makeFrm ' ); break;
	case MODIFICAR_LUGAR . "_onLoad_2":$aClass = array('/lugar_exe' => 'update ' ); break;
	case ELIMINAR_LUGAR . "_onLoad_1":$aClass = array('/lugar_exe' => 'delete ' ); break;
	case CONSULTAR_PERSONAS . "_onShow_1":$aClass = array('/persona_frm' => 'makeFlt ','/persona_lst' => 'makeLst ' ); break;
	case AGREGAR_PERSONA . "_onShow_1":$aClass = array('/persona_frm' => 'makeFrm ' ); break;
	case AGREGAR_PERSONA . "_onLoad_2":$aClass = array('/persona_exe' => 'insert ' ); break;
	case MODIFICAR_PERSONA . "_onShow_1":$aClass = array('/persona_frm' => 'makeFrm ' ); break;
	case MODIFICAR_PERSONA . "_onLoad_2":$aClass = array('/persona_exe' => 'update ' ); break;
	case ELIMINAR_PERSONA . "_onLoad_1":$aClass = array('/persona_exe' => 'delete ' ); break;
	case VER_COLECCION . "_onShow_1":$aClass = array('/libro_lst' => 'makeColeccion ' ); break;
	case VER_FICHA . "_onShow_1":$aClass = array('/libro_lst' => 'makeFicha ' ); break;
	case BUSCAR_LIBROS . "_onShow_1":$aClass = array('/libro_frm' => 'makeBuscar ' ); break;
	case BUSCAR_LIBROS . "_onShow_2":$aClass = array('/libro_lst' => 'makeColeccion ' ); break;
	case CONSULTAR_LIBROID . "_onShow_1":$aClass = array('/libro_id_frm' => 'makeFlt ','/libro_id_lst' => 'makeLst ' ); break;
	case AGREGAR_LIBROID . "_onShow_1":$aClass = array('/libro_id_frm' => 'makeFrm ' ); break;
	case AGREGAR_LIBROID . "_onLoad_2":$aClass = array('/libro_id_exe' => 'insert ' ); break;
	case MODIFICAR_LIBROID . "_onShow_1":$aClass = array('/libro_id_frm' => 'makeFrm ' ); break;
	case MODIFICAR_LIBROID . "_onLoad_2":$aClass = array('/libro_id_exe' => 'update ' ); break;
	case ELIMINAR_LIBROID . "_onLoad_1":$aClass = array('/libro_id_exe' => 'delete ' ); break;
} if ( $this->cEvent == "onLoad" ){foreach($aClass as $cKey => $cValue ) {list($cSubModulo, $cClase) = explode( "/", $cKey );list($cMetodo, $cParametro) = explode( " ", $cValue );$this->setSubModule($cSubModulo);$oClass = $this->loadClass($cClase);if ( $cMethod ) $oClass->$cMethod(); else$oClass->$cMetodo($cParametro); }} else{foreach($aClass as $cKey => $cValue ) {list($cSubModulo, $cClase) = explode( "/", $cKey );list($cMetodo, $cParametro) = explode( " ", $cValue );if ( $cClass == "" || $cClass == $cClase ) { $this->setSubModule($cSubModulo);$oClass = $this->loadClass($cClase);if ( $cMethod  ) $oClass->$cMethod(); else { echo "<div id='$cClase'>";$oClass->$cMetodo($cParametro); echo "</div>";}}}}